#!usr/bin/env python
# -*- coding:utf-8 _*-
"""
# author: 小菠萝测试笔记
# blog:  https://www.cnblogs.com/poloyy/
# time: 2021/10/15 9:55 下午
# file: page.py
"""
from typing import Optional

from pydantic import BaseModel

__all__ = [
    "Page",
    "UserPage",
    "DepartmentPage",
    "PermissionPage",
    "RolePage",
    "DocsPage",
    "SharePage",
]


class Page(BaseModel):
    page: int = 1
    size: int = 10
    name: Optional[str] = None


class UserPage(Page):
    username: Optional[str] = None


class DepartmentPage(Page):
    pass


class PermissionPage(Page):
    pass


class RolePage(Page):
    pass


class DocsPage(Page):
    pid: int
    flag: int


class SharePage(Page):
    share_id: int
